// src/api/userRoleApi.js
import { apiClient } from './base'

export const getUserRoles = (userId) => 
  apiClient.get(`/user-roles/user/${userId}`)

export const addUserRole = (data) => 
  apiClient.post('/user-roles', data)

export const removeUserRole = (userId, roleId) =>
  apiClient.delete(`/user-roles/${userId}/${roleId}`)